<template>
  <a-modal
    :visible="visible"
    title="导师聘书发放处理明细"
    @cancel="() => { $emit('close') }"
    :width="700"
  >
    <a-form :form="form">
      <a-row>
        <a-col :md="10" :sm="24">
          <a-form-item
            label="聘书发放日期"
            :labelCol="{span: 9,offset: 1}"
            :wrapperCol="{span: 13, offset: 1}"
          >
            <a-date-picker v-decorator="[
              'psffrq',
              {
                rules: [{ required: true, message: '请选择聘书发放日期!' }],
              }
            ]"/>
          </a-form-item>
        </a-col>
        <a-col :md="10" :sm="24">
          <a-form-item
            label="聘书终止日期"
            :labelCol="{span: 9,offset: 1}"
            :wrapperCol="{span: 13, offset: 1}"
          >
            <a-date-picker v-decorator="[
              'pszzrq',
              {
                rules: [{ required: true, message: '请选择聘书终止日期!' }],
              }
            ]"/>
          </a-form-item>
        </a-col>
      </a-row>
    </a-form>
    <a-row slot="footer" style="text-align: center">
      <a-button @click="confirm" type="primary">确定</a-button>
    </a-row>
  </a-modal>
</template>

<script>

export default {
  props: ['visible', 'dsbh'],
  data () {
    return {
      collegeList: [],
      recruitUnitList: [],
      queryParam: ''
    }
  },
  beforeCreate () {
    this.form = this.$form.createForm(this)
  },
  created () {
  },
  methods: {
    confirm () {
      this.form.validateFields((err, values) => {
        if (err) {
          return
        }
        this.$emit('issue', values)
      })
    }
  }
}
</script>

<style>

</style>
